﻿#ifndef IRobot_H
#define IRobot_H

#include "IDevice.h"
#include <QWidget>
#include <QString>
#include <QList>
#include "Belt.h"

class DEVICE_EXPORT IBelt : public IDevice
{
public:
	IBelt();
	IBelt(SDeviceConfig *pDeviceConfig);
	virtual ~IBelt();

	// IDevice 接口实现
	QObject* getDeviceObject() override;
	bool startDevice() override;
	void stopDevice() override;
	bool controlDevice(const QString& cmd) override;
	void deleteDevice();
	QString getDeviceStatus() const override;
	QList<CMeasurePoint*> getMeasurePoints() const override;
	void setAlarmArea(const QString& area) override;
	QList<QString> getDeviceLogs() const override;
	QWidget* getDeviceConfigUi() override;
	QWidget* getDeviceRunUi() override;
	QWidget* getDeviceThumbnailUi(int nId = 0) override;
	QVector<QWidget*> getDeviceUiList()override;
	QMap<QString, QString> getInputPointList()override;
	void setInputPointList(QMap<QString, CMeasurePoint*>vecInputPoint)override;
private:
	QString IBeltStatus;
	QString alarmArea;
	Belt *m_pBelt;   //机器人设备对象
};

#endif // IRobot_H
